import Http from "@/api/http";


export const getRoleList = function() {
    return Http.get('/role/getList')
}


export const roleInsert = function(paramData: any) {
    return Http.post('/role/insert',paramData)
}

export const roleUpdate = function(paramData: any) {
    return Http.post('/role/update',paramData)
}


export const roleDel = function(ids: [] | number[]) {
    // 确保ids是一个数组，并将其包装在一个对象中，该对象的键为'ids'
    const paramData =  ids ;
    return Http.post('/role/delete', paramData);
}

export const getPage = function(paramData: any) {
    return Http.post('/role/getPage', paramData);
}